package cn.tedu.spring.eg3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestShopController {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext acact=new
                AnnotationConfigApplicationContext("cn.tedu.spring.eg3");
        ShopController sc=acact.getBean(ShopController.class);
        System.out.println(sc);
        acact.close();


    }


}
